﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.MES.Customer.Domain
{
    /// <summary>
    /// 单位表
    /// </summary>
    [SugarTable("Unit")]
    public class Unit
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)] // 设置为主键，并自增// 设置列名为"单位Id"
        public int UnitId { get; set; }

        [SugarColumn(Length = 50, ColumnDataType = "nvarchar")] // 设置长度和数据类型
          // 设置列名和注释单位名称
        public string ?UnitName { get; set; }
    }
}
